/**
 * 登录api
 */

import { basicIp, newHttpService } from "../api/http";


export interface IContextLoginParames {
    loginName: string; //登录账号
    loginType: string; //登录设备
    password: string; //登录密码
}

//tocr/context/login 
export const postContextLogin = (data: IContextLoginParames) => {
    const url = basicIp + "/context/login";
    return newHttpService.postData(url, data);
};

export interface IContextLogin {
    token: string;
    userName: string;//用户名称
    userId: string; //用户id
}